﻿<controls:ChildWindow x:Class="ShopOnline.Views.MakeOrderChildWindow"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:local="clr-namespace:ShopOnline"
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="361" Height="232" 
           Title="Customer information" Loaded="ChildWindow_Loaded">    
    <controls:ChildWindow.Resources>
        <local:InvertBooleanConverter x:Key="InvertBooleanConverter" />
    </controls:ChildWindow.Resources>
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Button x:Name="CancelButton" Content="Cancel" Click="CancelButton_Click" Width="75" Height="23"
                HorizontalAlignment="Right" Margin="0,12,0,0" Grid.Row="1" />
        <Button x:Name="OKButton" Content="OK" Click="OKButton_Click" Width="75" Height="23" 
                HorizontalAlignment="Right" Margin="0,12,79,0" Grid.Row="1" />
        <TextBlock Height="23" HorizontalAlignment="Left" Margin="12,12,0,0" 
                   Text="Name:" VerticalAlignment="Top" />
        <TextBlock Height="23" HorizontalAlignment="Left" Margin="12,41,0,0" 
                   Text="Address:" VerticalAlignment="Top" />
        <TextBlock Height="23" HorizontalAlignment="Left" Margin="12,104,0,0" 
                   Text="Phone:" VerticalAlignment="Top" />
        <TextBlock Height="23" HorizontalAlignment="Left" Margin="12,133,0,0" 
                   Text="E-mail:" VerticalAlignment="Top" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="67,8,0,0" Name="textBoxName" VerticalAlignment="Top" Width="236" 
                 Text="{Binding Path=CustomerName, Mode=TwoWay}" />
        <TextBox Height="57" HorizontalAlignment="Left" Margin="67,37,0,0" Name="textBoxAddress" VerticalAlignment="Top" 
                 AcceptsReturn="True" TextWrapping="Wrap" Width="236" 
                 Text="{Binding Path=Address, Mode=TwoWay}"/>
        <TextBox Height="23" HorizontalAlignment="Left" Margin="67,100,0,0" Name="textBoxPhone" VerticalAlignment="Top" 
                 Text="{Binding Path=Phone, Mode=TwoWay}" Width="236" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="67,129,0,0" Name="textBoxEmail" VerticalAlignment="Top" 
                 Text="{Binding Path=Email, Mode=TwoWay}" Width="236" />
    </Grid>
</controls:ChildWindow>